<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <script type="text/javascript" src="https://unpkg.com/vue/dist/vue.js"></script>
    <script src="https://cdn.staticfile.org/vue-resource/1.5.1/vue-resource.min.js"></script>
    <title>首页</title>
</head>
<body>

<div>
    <a th:if="${session.username == null}" th:href="@{/login}">登录</a>
    <a th:text="${session.username}" th:href="/personal_center"></a>
    <a th:if="${session.username != null}" th:href="@{/logout}">注销</a>
</div>

</body>
</html>